<?php /* Smarty version 2.6.18, created on 2017-01-03 13:19:38
         compiled from shops/assign.update.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="post">	
                <div class="box-header with-border">
                    <span class="fa fa-wrench" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">派单</p>
                </div>
                   <div class="box-body">
                       <div class="form-group">
                              <label for="inputPassword3" class="col-md-4 control-label text-right">
                                   申购内容：
                              </label>
                              <div class="input-group col-md-4 col-sm-12 col-xs-12">
							  <?php echo $this->_tpl_vars['shop_data']['shop_content']; ?>

                              </div> 
                        </div>
                        <div class="form-group">
                              <label for="inputPassword3" class="col-md-4 control-label text-right">
                                   采购人员：
                              </label>
                              <div class="input-group col-md-4 col-sm-12 col-xs-12">
								 <select class="form-control" id="s1" name="shops_id" >
                                     <option value="">请选择</option>
                                     <?php $_from = $this->_tpl_vars['shops_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
									<option value="<?php echo $this->_tpl_vars['value']['shops_id']; ?>
"><?php echo $this->_tpl_vars['value']['shops_name']; ?>
</option>
									<?php endforeach; endif; unset($_from); ?>		
								  </select> 
                              </div> 
                        </div>
                       <div class="form-group">
                           <label for="inputPassword3" class="col-md-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
                               老师：
                           </label>
                           <div class="input-group col-md-4 col-sm-12 col-xs-12">
                               <select class="form-control" id="s1" name="staff_id" >
                                   <option value="">请选择</option>
                                   <?php $_from = $this->_tpl_vars['staff_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                   <option value="<?php echo $this->_tpl_vars['value']['staff_id']; ?>
" <?php if ($this->_tpl_vars['main_data']['staff_id'] == $this->_tpl_vars['value']['staff_id']): ?>select<?php endif; ?>><?php echo $this->_tpl_vars['value']['staff_name']; ?>
</option>
                                   <?php endforeach; endif; unset($_from); ?>
                               </select>
                           </div>
                       </div>
						
						<div class="form-group">
                              <label for="inputPassword3" class="col-md-4 control-label text-right">
                                   指派时间：
                              </label>
                              <div class="input-group col-md-4">
							   <input type="text" class="form-control"  id="from" name="assign_time" value="<?php echo $this->_tpl_vars['shop_data']['assign_time']; ?>
">
							     <div class="input-group-addon">
									<i class="fa fa-calendar"></i>
								 </div>
						    </div> 
                        </div>
                        <div class="form-group">
                              <label for="inputPassword3" class="col-md-4 control-label text-right">
                                   加急项目：
                              </label>
                              <div class="input-group col-md-4 col-sm-12 col-xs-12">
                                     <label class="choice"><input type="radio" name="shop_urgent" value='1'<?php if ($this->_tpl_vars['shop_data']['shop_urgent'] == 1): ?>checked<?php endif; ?>> 是</label>
                                     <label><input type="radio" name="shop_urgent" value="2"<?php if ($this->_tpl_vars['shop_data']['shop_urgent'] == 2): ?>checked<?php endif; ?>> 否</label>
                              </div> 
                        </div>
                        <div class="form-group">
                              <label for="inputPassword3" class="col-md-4 control-label text-right">
                                   派单备注：
                              </label>
                              <div class="input-group col-md-5 col-sm-12 col-xs-12">
                                    <textarea class="form-control" rows="3" name="shop_remark"><?php echo $this->_tpl_vars['shop_data']['shop_remark']; ?>
</textarea>
                              </div> 
                        </div>
				   </div><!--box-body -->
                   <div class="box-footer text-center">
                        <button class="btn btn-primary" type="submit">确 定 派 单</button>
                   </div>
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script>
  $(function() {
    $( "#from" ).datepicker({
      changeMonth: true,
	  changeYear: true, 
    });
  });
</script>